using System;
using System.Runtime.Serialization;
using Microsoft.Practices.RecipeFramework.VisualStudio.Templates;

namespace PrismFactory.SoftwareFactory.References
{
    [Serializable]
    public class ModuleTemplateReference : UnboundTemplateReference
    {
        public ModuleTemplateReference(string recipe)
            : base(recipe)
        {
        }

        public ModuleTemplateReference(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        public override bool IsEnabledFor(object target)
        {
            return true;
        }

        public override string AppliesTo
        {
            get
            {
                return "Any solution folder or the solution root";
            }
        }
    }
}